package com.cwz.file.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cwz.api.entity.UserPath;
import com.cwz.core.result.R;
import com.cwz.file.model.UserPathVo;

import java.util.List;

/**
 * <p>
 * 用户文件目录表 服务类
 * </p>
 *
 * @author Wen
 * @since 2023-06-28
 */
public interface UserPathService extends IService<UserPath> {
	/**
	 * @Description: 新建文件夹
	 * @Author: Wen
	 * @param userPath:
	 * @return: com.cwz.core.result.R<java.lang.Void>
	 **/
	R<Void> addUserPath(UserPath userPath);

	/**
	 * @Description: 编辑文件夹
	 * @Author: Wen
	 * @param userPath:
	 * @return: com.cwz.core.result.R<java.lang.Void>
	 **/
	R<Void> updateUserPath(UserPath userPath);

	/**
	 * @Description: 删除文件夹
	 * @Author: Wen
	 * @param pathId:
	 * @return: com.cwz.core.result.R<java.lang.Void>
	 **/
	R<Void> deleteUserPath(Long pathId);

	/**
	 * @Description: 查询文件夹
	 * @Author: Wen
	 * @param userId:
	 * @return: com.cwz.core.result.R<java.util.List<com.cwz.file.model.UserPathVo>>
	 **/
	R<List<UserPathVo>> listUserPath(Long userId);

}
